//
//  accountsToolBar.h
//  测试
//
//  Created by 狮子座 on 2017/4/20.
//  Copyright © 2017年 森之源. All rights reserved.
//

#import "BaseView.h"

typedef NS_OPTIONS(NSUInteger, selectToolType) {
    selectToolTypeDelete,  ///删除
    selectToolTypeAll,     ///全选
    selectToolTypeAllNo,     ///反全选
    selectToolTypeAccounts,///结账
};

@protocol accountsToolBarDelegate <NSObject>
///删除
-(void)onDeleteCommodity:(UIButton *)button;
///全选
-(void)onAllCommodity:(UIButton *)button;
///结账
-(void)onAccountsCommodity:(UIButton *)button;

-(void)onSelectType:(selectToolType)type Button:(UIButton *)button;

@end

@interface accountsToolBar : BaseView
///删除按钮
@property (strong,nonatomic)IBOutlet UIButton * deleteButton;
///全选按钮
@property (strong,nonatomic)IBOutlet UIButton * allButton;
///结账按钮
@property (strong,nonatomic)IBOutlet UIButton * accountsButton;
///合计金额
@property (strong,nonatomic)IBOutlet UILabel *priceLabel;

@property (weak,nonatomic)IBOutlet id<accountsToolBarDelegate>delegate;

@property (assign,nonatomic)selectToolType selectToolType;


-(void)onUpdatePrice:(NSString *)price;


@end
